﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="NewsMn.aspx.cs" Inherits="Portal_KonTum.Admin.NewsMn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container_12">
        <!-- Dashboard icons -->
        <div class="grid_7">
            <a class="dashboard-module" href="NewsMn.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_write.gif" 
                width="64" /> <span>Quản Lý Bài Viết</span> </a>

            <a class="dashboard-module" href="CatalogyMn.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_files.gif" 
                width="64" /> <span>Quản Lý Danh Mục </span></a>

            <a class="dashboard-module" href="ConfigureWeb.aspx">
            <img alt="edit" height="64" src="css/images/Crystal_Clear_settings.gif" 
                tppabs="http://www.xooom.pl/work/magicadmin/images/Crystal_Clear_settings.gif" width="64" /> <span>Cài Đặt</span> </a>
            <div style="clear: both">
            </div>
        </div>
        <!-- End .grid_7 -->
        <div style="clear:both;">
        </div>
        <div class="grid_12">
            <div class="bottom-spacing">
                <div>
                    <label id="lbnotes" runat="server" class="notification n-success" 
                        visible="False">
                    Chỉnh sửa thành công.</label>
                </div>
                <!-- Button -->
                <div class="float-right">
                    <a class="button" href="NewsNew.aspx"><span>Đăng bài viết<img alt="New article" 
                        height="9" src="css/images/plus-small.gif" 
                        tppabs="http://www.xooom.pl/work/magicadmin/images/plus-small.gif" width="12" /></span></a>
                </div>
                <!-- Table records filtering -->    
                </div>
                <div class= "float-left">
                        Danh mục&nbsp;
                        <asp:DropDownList ID="DL_cate" runat="server" class="input-short" Width="150px">
                        </asp:DropDownList>
                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="button" 
                            onclick="Button1_Click" />
                </div>
                <div></div>
                <!-- Example table -->
                <div class="module">
                    <h2>
                        <span>Danh sách Bảng Tin</span></h2>
                    <div class="module-table-body">
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" EnableModelValidation="True" 
                            onpageindexchanged="GridView1_PageIndexChanged" 
                            onpageindexchanging="GridView1_PageIndexChanging" 
                            onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound">
                            <Columns>
                                <asp:TemplateField HeaderText="#">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                    <ItemStyle Width="20px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tiêu đề">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hf_hl" runat="server" Value='<%# Eval("NewID") %>' />
                                        <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" >
                                            <%# Eval("NewTitle") %>
                                        </asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Người đăng">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hf_cb" runat="server" Value='<%# Eval("CreateBy") %>' />
                                        <asp:Label ID="lb_cb" runat="server" Text='<%# Eval("CreateBy") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="150px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="CreateDate" DataFormatString="{0:dd/MM/yyyy}" 
                                    HeaderText="Ngày đăng" >
                                <ItemStyle Width="100px" />
                                </asp:BoundField>
                                <asp:CheckBoxField DataField="IsShow" HeaderText="Hiển thị" >
                                <ItemStyle Width="60px" />
                                </asp:CheckBoxField>
                                <asp:TemplateField HeaderText="Tùy chỉnh">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" 
                                            CommandArgument='<%# Eval("NewID") %>' CommandName="rowEdit" 
                                            OnClientClick="return confirm(&quot;Are you sure you want to Edit this entry?&quot;);" 
                                            Text="Edit">
                                            Sửa
                                            <img alt="edit" height="16" src="css/images/pencil.gif" title="Sửa bài" tppabs="http://www.xooom.pl/work/magicadmin/images/pencil.gif" width="16" />
                                        </asp:LinkButton>
                                        |
                                        <asp:LinkButton ID="LinkButton3" runat="server" 
                                            CommandArgument='<%# Eval("NewID") %>' CommandName="rowDelete" 
                                            OnClientClick="return confirm(&quot;Are you sure you want to delete this entry?&quot;);" 
                                            Text="Delete">
                                            Xóa
                                            <img alt="published" height="16" src="css/images/cross-on-white.gif" title="Xóa bài" tppabs="http://www.xooom.pl/work/magicadmin/images/tick-circle.gif" width="16" />
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="100px" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BorderStyle="None" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:GridView>
                        
                    </div>
                    <!-- End .module-table-body -->
                </div>
            <!-- End .module -->
        </div>
        <!-- End .grid_12 -->
        <!-- Categories list -->
        <div style="clear:both;">
        </div>
        <div style="clear:both;">
        </div>
    </div>
    <!-- End .container_12 -->
</asp:Content>
